package com.supreme.studyserver.component.event;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Component
public class BlackHistoryListener implements ApplicationListener<BlackHistoryEvent> {

    @Override
    public void onApplicationEvent(BlackHistoryEvent blackHistoryEvent) {
        System.out.println("监听到BlackListEvent事件: " + blackHistoryEvent.getTitle() + " " + blackHistoryEvent.getSource());
    }
}
